package com.hz.monitoring.module.hardware.convert.mcu_tenant_resource;

import com.hz.monitoring.framework.common.pojo.PageResult;
import com.hz.monitoring.module.hardware.controller.admin.mcu_tenant_resource.vo.McuTenantResourceCreateReqVO;
import com.hz.monitoring.module.hardware.controller.admin.mcu_tenant_resource.vo.McuTenantResourceExcelVO;
import com.hz.monitoring.module.hardware.controller.admin.mcu_tenant_resource.vo.McuTenantResourceRespVO;
import com.hz.monitoring.module.hardware.controller.admin.mcu_tenant_resource.vo.McuTenantResourceUpdateReqVO;
import com.hz.monitoring.module.hardware.dal.dataobject.mcu_tenant_resource.McuTenantResourceDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * MCU租户配置 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface McuTenantResourceConvert {

    McuTenantResourceConvert INSTANCE = Mappers.getMapper(McuTenantResourceConvert.class);

    McuTenantResourceDO convert(McuTenantResourceCreateReqVO bean);

    McuTenantResourceDO convert(McuTenantResourceUpdateReqVO bean);

    McuTenantResourceRespVO convert(McuTenantResourceDO bean);

    List<McuTenantResourceRespVO> convertList(List<McuTenantResourceDO> list);

    PageResult<McuTenantResourceRespVO> convertPage(PageResult<McuTenantResourceDO> page);

    List<McuTenantResourceExcelVO> convertList02(List<McuTenantResourceDO> list);

}
